package org.javaweb.cms_web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.sql.DataSource;
import java.sql.Connection;
import java.sql.SQLException;

@Controller
public class InfoController {

    @GetMapping("/infoBrowse")
    public String infoBrowse() {
        // 渲染信息浏览页面
        return "infoBrowse";
    }

    @GetMapping("/accountRegister")
    public String accountRegister() {
        // 渲染账户注册页面
        return "accountRegister";
    }

    @GetMapping("/interactiveFeature")
    public String interactiveFeature() {

        // 渲染互动功能页面
        return "interactiveFeature";
    }
}
